package dao;

import java.sql.SQLException;
import java.util.List;

import entity.Admin;

public interface AdminDao {
	int getListCount(String condition) throws SQLException;
	List<Admin> getList(int offset, int limit, String condition, String order) throws SQLException;
	int addAdmin(Admin admin) throws SQLException;
	int deleteAdminById(String id) throws SQLException;
	Admin getAdminById(int id) throws SQLException;
	int editAdmin(Admin admin) throws SQLException;
	Admin getAdminByUsername(String username) throws SQLException;
}
